<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h1>字符串，整数，布尔，数组</h1>
		
		<script type="text/javascript">
	   
		var str ="javascript的数据类型"
			 console.log(str);
			 
			 var i =100;
			 console.log(i);
			 
			 var isMan =true;
			 console.log(isMan);
			 
			var hobby= ["乒乓球","篮球","爬山","足球"];
			 console.log(hobby);
			   console.log(hobby[0]);//数组的下标从0开始
			   console.log(hobby[hobby.length-1]);//打印最后一个元素
		</script>
	</body>
</html>
